<? require_once("Clases/Curso.php")?>
<? require_once("Clases/Asignatura.php")?>
<?
	session_start();
	$curso = $_SESSION["curso"]; //TODO Quitar
	$errores = 	$_SESSION["errcurso"];
	
	if(!isset($curso)){
		$curso = new Curso(null, "00/00/0000", "99/99/9999", "titulacion");
		$_SESSION["curso"] = $curso;
		
	}
	
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>Nuevo Curso</title>
		<script type="text/javascript" src="scripts/validacurso.js"></script>
	</head>
	<body>
		<div id="errores" class="errores">
			<?
				for($i = 0; $i < count($errores); $i++){
					echo $errores[$i]."<br>";
				}
			?>
		</div>
		<form id="formcurso" name="formcurso" action="tratamiento/tratamientocurso.php?res=nuevaasignatura.php" enctype="application/x-www-form-urlencoded" method="post">
			<? include_once("formularios/formcurso.php"); ?>
			<input type="submit" value="Crear" />
		</form>
	</body>
</html>
